/**
 * Created by yuyongzhen <1640599564@qq.com>>.
 */
angular.module('configDirectives', [])
.directive('tabclick', function () {
    return {
        link: function (scope, element, attrs) {
            var $self = element;
            $self.click(function () {
                var $parent=$self.parent();
                $parent.parent().find('dl').removeClass('l_active');
                $parent.find('ul').slideToggle();
                $parent.addClass('l_active');
            });
        }
    }
})
.directive('dropdown',function(){
    return{
        link:function(scope,element,attrs){
            var $self = element;
            $self.click(function () {
                var $parent=$self.parent();
                $parent.find('.drop_details').fadeToggle();
            });
        }
    }
});

